#ifndef VIRTUALBUILDTARGETSDLG_H
#define VIRTUALBUILDTARGETSDLG_H

#include <wx/wxprec.h>
#include "scrollingdialog.h"
#include <wx/button.h>
#include <wx/checklst.h>
#include <wx/listbox.h>

class M_Code_Project;

class VirtualBuildTargetsDlg: public wxScrollingDialog {
  public:
    VirtualBuildTargetsDlg( wxWindow* parent, wxWindowID id, M_Code_Project* project );
    virtual ~VirtualBuildTargetsDlg();
  protected:
    void OnAddClick( wxCommandEvent& event );
    void OnEditClick( wxCommandEvent& event );
    void OnRemoveClick( wxCommandEvent& event );
    void OnAliasesSelect( wxCommandEvent& event );
    void OnTargetsToggled( wxCommandEvent& event );
    void OnUpdateUI( wxUpdateUIEvent& event );
    wxButton* btnAdd;
    wxButton* btnEdit;
    wxButton* btnRemove;
    wxCheckListBox* lstTargets;
    wxListBox* lstAliases;
    void SetVirtualTarget( const wxString& targetName );
    void CheckTargets();
    M_Code_Project* m_pProject;
    bool xml_File_lock;
  private:
    DECLARE_EVENT_TABLE()
};

#endif
